package model;

public class Address {
	private long id;
	public Address(long id, String country, String region, String city,
			String streetLine1, String streetLine2, String postalCode) {
		super();
		this.id = id;
		this.country = country;
		this.region = region;
		this.city = city;
		this.streetLine1 = streetLine1;
		this.streetLine2 = streetLine2;
		this.postalCode = postalCode;
	}

	private String country;
	private String region;
	private String city;
	private String streetLine1;
	private String streetLine2;
	private String postalCode;
	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}
	/**
	 * @return the country
	 */
	public String getCountry() {
		return country;
	}
	/**
	 * @return the region
	 */
	public String getRegion() {
		return region;
	}
	/**
	 * @return the city
	 */
	public String getCity() {
		return city;
	}
	/**
	 * @return the streetLine1
	 */
	public String getStreetLine1() {
		return streetLine1;
	}
	/**
	 * @return the streetLine2
	 */
	public String getStreetLine2() {
		return streetLine2;
	}
	/**
	 * @return the postalCode
	 */
	public String getPostalCode() {
		return postalCode;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (id ^ (id >>> 32));
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Address other = (Address) obj;
		if (id != other.id)
			return false;
		return true;
	}
}
